package com.newbingo.entity;

import java.util.List;
import java.util.Map;
import java.util.Set;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Embeddable;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.OneToOne;
import javax.persistence.Table;
import org.hibernate.annotations.CollectionOfElements;
import org.hibernate.annotations.Parent;

/**
 * 本期游戏开奖结果
 * @author ChansonYan
 *
 */
@Embeddable
public class PeriodGameResult {
	private PeriodGame periodGame;
	private List<Lottery> lotteries;
	private Set<BettingCell> cells;
	
	@Parent
	public PeriodGame getPeriodGame() {
		return periodGame;
	}
	public void setPeriodGame(PeriodGame periodGame) {
		this.periodGame = periodGame;
	}
	
	@CollectionOfElements
	public List<Lottery> getLotteries() {
		return lotteries;
	}
	
	public void setLotteries(List<Lottery> lotteries) {
		this.lotteries = lotteries;
	}
	
	@CollectionOfElements
	public Set<BettingCell> getCells() {
		return cells;
	}
	public void setCells(Set<BettingCell> cells) {
		this.cells = cells;
	}
	
}
